package BanyuanClub.Study.Day0223.Math;

import java.util.Arrays;

public class TextMath {
    public static void main(String[] args) {
        System.out.println(Math.sin(Math.PI/2));

        //得到【30，78】之间的随机整数
        //Math.random()
        int in =(int) (Math.random()*(78-30+1)+30);
        //产生10个【8-100】的随机数放入数组，并找到最大值
        int[] arr = new int[10];
        int max = 0;
        for (int i = 0; i < arr.length; i++) {
            arr[i] = (int) (Math.random()*(100-8+1)+8);
            if(max < arr[i])
                max = arr[i];
        }

        System.out.println(Arrays.toString(arr));
        System.out.println(max);
    }
}
